package com.amigo.online.provider.ffmpeg.feignservice;

import com.amigo.online.provider.ffmpeg.feignservice.impl.VideoFeignServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.amigo.online.common.core.response.Response;

/**
 * video 服务
 *
 * @author Administrator
 */

@FeignClient(name = "amigo-online-provider-video", fallback = VideoFeignServiceImpl.class)
public interface VideoFeignService {

    @RequestMapping(value = "/video/private/update/VideoWaterMark", method = RequestMethod.POST)
    ResponseEntity<Response> updateVideoWaterMarkUrl(@RequestParam("videoId") long videoId, @RequestParam("video") String waterMarkUrl,
                                                     @RequestParam("music") String musicUrl, @RequestParam("userId") long userId);

    @RequestMapping(value = "/video/update/MusicOrginalMusic", method = RequestMethod.POST)
    ResponseEntity<Response> updateMusicOrginalMusicUrl(@RequestParam("id") long videoId, @RequestParam("url") String musicUrl);

    @RequestMapping(value = "/video/private/update/VideoWaterMark/v1", method = RequestMethod.POST)
    ResponseEntity<Response> updateVideoWaterMarkUrlV1(@RequestParam("videoId") long videoId, @RequestParam("video") String waterMarkUrl,
                                                       @RequestParam("music") String musicUrl, @RequestParam("userId") long userId, @RequestParam("duration") Integer duration);


}
